package com.community.owner.domain.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.community.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OwnerVo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    // 业主信息
    private Long ownerId;
    private Long userId;
    private Long houseId;
    private String idCard;

    // 用户信息
    private String userName;
    private String phonenumber;

    private String userStatus;

    // 房屋信息
    private String roomNo;

    // 楼宇信息
    private String buildingName;
    private Integer unitCount;

    // 小区信息
    private String communityName;


    private String keyword;
    @JsonProperty("owner_type") // 如果需要
    private String ownerType;

    // 状态转换（用于前端显示）
    public String getStatusText() {
        return "0".equals(userStatus) ? "正常" : "停用";
    }

}
